home *** CD-ROM | disk | FTP | other *** search
/ Just Call Me Internet / Just Call Me Internet.iso / com / computer / casio_st / prog_fx / oisac2 / l_5610.txt < prev    next >
Text File  |  1994-03-01  |  735b  |  20 lines

  1. 5 ONERRORGOTO900
  2. 20 MODE8:DIM:a=0:b=0:c=0:h=0:c$=CHR$(5)
  3. 30 CLS:PRINT"Area (parallelogram)";TAB(0);"1:ah       2:ab¥siné";
  4. 40 w=ASC(INPUT$(1,@))-48:IFw<1 ORw>2 THEN40
  5. 50 ONw GOTO100,200
  6. 100 CLS:PRINT"ah       a:base  h:height";
  7. 110 s$="a":z=a:GOSUB500:a=z
  8. 120 s$="h":z=h:GOSUB500:h=z
  9. 130 z=a*h:GOTO400
  10. 200 CLS:PRINT"ab¥siné        a:b:side";
  11. 210 s$="a":z=a:GOSUB500:a=z
  12. 220 s$="b":z=b:GOSUB500:b=z
  13. 230 s$="é":z=c:GOSUB500:c=z:IFSINc<0 THEN230
  14. 240 z=a*b*SINc
  15. 400 LOCATE0,1:PRINTc$;"Area =";z;:z$=INPUT$(1,@):GOTO30
  16. 500 LOCATE0,1:PRINTc$;s$;"=";z;"?";:INPUT@42;z:LOCATE0,0:IFz<0 THEN500 ELSERETURN
  17. 900 IFERR=1 THENCLS:ONERRORGOTO0
  18. 910 IFERL=500 THENRESUME500
  19. 920 LOCATE0,1:PRINTc$;"not found";:z$=INPUT$(1,@):RESUME30
  20.